package org.springblade.modules.platform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 *
 * </p>
 *
 * @author SYG
 * @since 2022-08-30
 */
@TableName("rule_linkage")
@Data
public class RuleLinkage extends Model<RuleLinkage> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    private String ruleLinkageName;

    /**
     * 定时时间格式
     */
    @ApiModelProperty(value = "定时时间格式")
    private String cronExpression;


    /**
     * 定时时间格式
     */
    @ApiModelProperty(value = "定时查询时间格式")
    private String cronQueryExpression;

    /**
     * 设备ID
     */
    @ApiModelProperty(value = "设备ID")
    private String deviceId;


    @ApiModelProperty(value = "真空泵数量")
    private Integer deviceNumber;
    /**
     * 设备名称
     */
    @ApiModelProperty(value = "设备名称")
    private String deviceName;

    /**
     * 气压值
     */
    @ApiModelProperty(value = "气压值")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private Integer pressure;

    @ApiModelProperty(value = "范围")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private Integer pressureScope;

    /**
     * 1:开启；2：关闭
     */
    @ApiModelProperty(value = "1:开启；2：关闭")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private Integer state;

    /**
     * 添加时间
     */
    @ApiModelProperty(value = "添加时间")
    private Long insertTime;

    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    private Long updateTime;

    /**
     * 是否已删除
     */
    @ApiModelProperty(value = "是否已删除")
    private Integer isDeleted;


    /**
     * 是否已下发
     */
    @ApiModelProperty(value = "是否已下发")
    private Integer isIssue;


}
